import 'uno.css'

import uviewPlus from 'uview-plus'
import { createSSRApp } from 'vue'

import store from '@/store'

import App from './App.vue'

export function createApp() {
  const app = createSSRApp(App).use(store).use(uviewPlus)
  // 调用setConfig方法，方法内部会进行对象属性深度合并，可以放心嵌套配置
  // 需要在app.use(uview-plus)之后执行
  // @ts-ignore
  uni.$u.config.unit = 'rpx'
  return {
    app,
  }
}
